package com.ruoyi.parttime.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 兼职发布对象 parttime_publish
 *
 * @author ruoyi
 * @date 2024-04-02
 */
@Data
public class ParttimePublish extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 发布者的id
     */
    private Long userId;

    /**
     * 发布人
     */
    private String username;

    /**
     * 兼职地点
     */
    @Excel(name = "兼职地点")
    private String partTimeLocation;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 工作内容
     */
    @Excel(name = "工作内容")
    private String workContent;

    /**
     * 被申请次数
     */
    @Excel(name = "被申请次数")
    Long numbers;

    /**
     * 招聘人数
     */
    @Excel(name = "招聘人数")
    private Integer numbersPeople;

    /**
     * 招聘要求
     */
    @Excel(name = "招聘要求")
    private String requirements;

    /**
     * 每月薪水或面谈
     */
    @Excel(name = "每月薪水或面谈")
    private String monthSalary;

    /**
     * 招聘状态;0：正常  2：人数满足 3：撤消
     */
    @Excel(name = "兼职招聘状态")
    private String recruitmentStatus;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("username", getUsername())
                .append("partTimeLocation", getPartTimeLocation())
                .append("phone", getPhone())
                .append("workContent", getWorkContent())
                .append("numbersPeople", getNumbersPeople())
                .append("requirements", getRequirements())
                .append("monthSalary", getMonthSalary())
                .append("recruitmentStatus", getRecruitmentStatus())
                .toString();
    }
}
